/**
 * Copyright (c) 2017,安徽皖通科技股份有限公司 All rights reserved.
 * @data:2017年10月17日
 * @author:MaShibo
 */
package com.wttech.dzzf.process.model.blacklist;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.wtkj.dao.annotation.DatabaseTable;
import com.wtkj.vo.AbstractValueObject;

import cn.com.taiji.sdk.model.comm.protocol.annotation.EnumValidate;
import etc.com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * OBU黑名单信息
 * 
 * @date 2017年10月17日
 * @author MaShibo
 */
@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@DatabaseTable(tableName = "BS_OBUBLACKLIST")
public class OBUBlackList extends AbstractValueObject {

    private String  id;
    
    
    @Size(min = 6, max = 6, message = "issuerId为6位数字字符")
    @NotNull(message = "issuerId 必填")
    private String issuerId;
    
    @Size(max = 20, message = "creationTime最大长度为20字符")
    @NotNull(message = "creationTime 必填")
    private String creationTime;
    
    @Size(max = 20, message = "OBUId最大长度为20字符")
    @NotNull(message = "OBUId 必填")
    @JsonProperty("OBUId")
    private String obuId;
    
    @EnumValidate(message = "type不正确", regexp = "(1|2|3|4)")
    @NotNull(message = "type 必填")
    private Integer type;
    
    @EnumValidate(message = "status不正确", regexp = "(1|2)")
    @NotNull(message = "status 必填")
    private Integer status;
    
}
